package com.shoparc.maidenlane;

import java.awt.event.KeyEvent;

import com.shoparc.mvc.Controller;

public class MLController extends Controller {
	MaidenLane parentAsML;
	int lowerB = 0;
	int upperB = 0;
	public MLController(MaidenLane _parent) {
		super(_parent);
		parentAsML = _parent;
	}
	
	protected void keycontrol(){
		super.keycontrol();
		if ((parent.keyPressed) && (parent.key == 'e')) {
			parentAsML.exportAsText();
		}
		if ((parent.keyPressed) && (parent.key == '9')) {
			upperB--;
		}
		if ((parent.keyPressed) && (parent.key == '0')) {
			upperB++;
		}
		if ((parent.keyPressed) && (parent.key == '8')) {
			lowerB++;
		}
		if ((parent.keyPressed) && (parent.key == '7')) {
			lowerB--;
		}
	}
	

	
	protected void mouseWheel(int delta) {
		mwheel = delta;
	}
	
}
